<template>
<div id="app">
</div>



</template>

<script>
import AppLogo from '~/components/AppLogo.vue'
import Hello from '~/components/test.vue'

import userClient from "../api/userClient";
export default {
  components: {
    AppLogo,
    Hello,
  },
  data() {
    return {
    };
  },
  created() {
    this.getUserInfo()
  },
  mounted() {

  },
  methods: {
    getUserInfo(){
      userClient.getUserInfo()
        .then(response=>{
            this.$router.push({path:"home"})
        })
      .catch(response=>{
        this.$router.push({path:"login"})
      })
    }
  },
}
</script>

<style scoped>

</style>
